package com.deyuanyun.pic.settings.mapper.base;

import com.deyuanyun.pic.settings.domain.base.Attachment;
import com.deyuanyun.pic.settings.domain.base.AttachmentExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AttachmentMapper {
    int deleteByPrimaryKey(String id);

    int insert(Attachment record);

    int insertSelective(Attachment record);

    int updateBusinessIdById(@Param("businessId") String businessId, @Param("id")String id);

    /**
     * 根据条件查询记录集
     */
    List<Attachment> selectByExample(AttachmentExample example);


    Attachment selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Attachment record);

    int updateByPrimaryKey(Attachment record);

    int updateByBusinessId(@Param("businessId") String businessId);
}